﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_CCC : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_CCC", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_CCC", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_CCC", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_CCC", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_CCC", "No");

        [Column]
        public string PCNo { get { return _PCNo; } set { _PCNo = value; EntityState.FieldChange("PCNo"); } }
        private string _PCNo;
        public static FieldInfo pcno = new FieldInfo("mdc_CCC", "PCNo");

        [Column]
        public string ProductionLine { get { return _ProductionLine; } set { _ProductionLine = value; EntityState.FieldChange("ProductionLine"); } }
        private string _ProductionLine;
        public static FieldInfo productionline = new FieldInfo("mdc_CCC", "ProductionLine");

        [Column]
        public string Color { get { return _Color; } set { _Color = value; EntityState.FieldChange("Color"); } }
        private string _Color;
        public static FieldInfo color = new FieldInfo("mdc_CCC", "Color");

        [Column]
        public string Package { get { return _Package; } set { _Package = value; EntityState.FieldChange("Package"); } }
        private string _Package;
        public static FieldInfo package = new FieldInfo("mdc_CCC", "Package");

        [Column]
        public string Amount { get { return _Amount; } set { _Amount = value; EntityState.FieldChange("Amount"); } }
        private string _Amount;
        public static FieldInfo amount = new FieldInfo("mdc_CCC", "Amount");

        [Column]
        public string BatchNo { get { return _BatchNo; } set { _BatchNo = value; EntityState.FieldChange("BatchNo"); } }
        private string _BatchNo;
        public static FieldInfo batchno = new FieldInfo("mdc_CCC", "BatchNo");

        [Column]
        public string Barcode { get { return _Barcode; } set { _Barcode = value; EntityState.FieldChange("Barcode"); } }
        private string _Barcode;
        public static FieldInfo barcode = new FieldInfo("mdc_CCC", "Barcode");

        [Column]
        public string CustomerCode { get { return _CustomerCode; } set { _CustomerCode = value; EntityState.FieldChange("CustomerCode"); } }
        private string _CustomerCode;
        public static FieldInfo customerCode = new FieldInfo("mdc_CCC", "CustomerCode");

        [Column]
        public string CustomerName { get { return _CustomerName; } set { _CustomerName = value; EntityState.FieldChange("CustomerName"); } }
        private string _CustomerName;
        public static FieldInfo customerName = new FieldInfo("mdc_CCC", "CustomerName");

        [Column]
        public string SalesPerson { get { return _SalesPerson; } set { _SalesPerson = value; EntityState.FieldChange("SalesPerson"); } }
        private string _SalesPerson;
        public static FieldInfo salesPerson = new FieldInfo("mdc_CCC", "SalesPerson");

        [Column]
        public string Remarks { get { return _Remarks; } set { _Remarks = value; EntityState.FieldChange("Remarks"); } }
        private string _Remarks;
        public static FieldInfo remarks = new FieldInfo("mdc_CCC", "Remarks");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_CCC", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_CCC", "Status");
    }
}
